package hc.uco

import java.awt.print.Printable;
import java.util.Date;

class Riscos {

	Paciente paciente
	static belongsTo = [Paciente]
	
	Integer graceMorteIntra 
	Integer graceMIIntra
	
	Integer graceMorte6meses
	Integer graceMI6meses
	
	Integer timiSemSupraPontos
	Integer timiSemSupra14dias
	
	Integer timiComSupraPontos
	Integer timiComSupra30dias
	
	Integer crusadePontos
	Integer crusadePerc
	
	Usuario createdBy
	Usuario updatedBy
	Date dateCreated
	Date lastUpdated
	
	Integer teste
	
	static transients = ["teste"]
	
    static constraints = {
		
		
		graceMorteIntra nullable: false, min: 0, max: 100
		graceMIIntra nullable: false, min: 0, max: 100
		
		graceMorte6meses nullable: false, min: 0, max: 100
		graceMI6meses nullable: false, min: 0, max: 100
		
		timiSemSupraPontos nullable: true
		timiSemSupra14dias nullable: true, min: 0, max: 100
		
		timiComSupraPontos nullable: true
		timiComSupra30dias nullable: true, min: 0, max: 100		
		
		crusadePerc nullable: false
		
	}
	
}